<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<?php
set_time_limit(0);
$root=preg_replace('/cron$/', '', dirname(__FILE__));

require_once($root."inc.config.php");

require_once($root."initialize.php");

$no=0;
$uid = $_GET['uid'];
$ucode = $_GET['ucode'];
if(($db_msg=cron_initialize()) !== true){
	print_r("Connection error");
}else{
	$record_sql="select gg_users.code, gg_users.name, gg_users.ewallet from gg_users where ewallet>0 and id>34 order by code";
	
	$t = @mysql_num_rows($r=mysql_query($record_sql));
	
	if($t<=0)
	{
		print_r("no record");
		exit;
	}

	echo "<table border='1'><tr><td>No.</td><td>Code</td><td>Name</td><td>E-Wallet Balance</td></tr>";
	$i=0;
	while($user = mysql_fetch_assoc($r))
	{		
		$i++;
		echo "<tr><td>".$i."</td><td>".$user['code']."</td><td>".$user['name']."</td><td align='right'>".$user['ewallet']."</td></tr>";
	}
	echo "</table>";

}

exit;		
?>